<!DOCTYPE html>
<html lang="en">
  <head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="shortcut icon" href="/favicon.ico">

	<title>Music parser | Tracks</title>

	<!-- Bootstrap core CSS -->
	<link href="css/bootstrap.css" rel="stylesheet">

	<!-- Custom styles for this template -->
	<link href="navbar-static-top.css" rel="stylesheet">

	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	  <script src="js/html5shiv.js"></script>
	  <script src="js/respond.min.js"></script>
	<![endif]-->
  </head>

  <body>

	<!-- Static navbar -->
	<div class="navbar navbar-default navbar-static-top">
	  <div class="container">
		<div class="navbar-header">
		  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		  </button>
		  <a class="navbar-brand" href="#">Music parser</a>
		</div>
		  <ul class="nav navbar-nav navbar-right">
			<li><a href="../">Home</a></li>
			<li><a href="about">About</a></li>
			<li><a href="artists">Artists</a></li>
			<li class="active"><a href="#">Tracks</a></li>
		  </ul>
		</div><!--/.nav-collapse -->
	  </div>
	</div>


	<div class="container">
		
		<h1>Tracks</h1>
		
		<!-- Pagination -->
		<!-- TODO: replace mock with real functionality -->
		<ul class="pagination">
			<li class="disabled"><a href="#">&laquo;</a></li>
			<li class="active"><a href="#">1<span class="sr-only">(current)</span></a></li>
			<li><a href="#">2</a></li>
			<li><a href="#">3</a></li>
			<li><a href="#">4</a></li>
			<li><a href="#">5</a></li>
			<li><a href="#">&raquo;</a></li>
		</ul>
		
		<br/>
		
		<!-- Table -->
		<table class="table">
		<tr>
			<td><b>Track</b></td>
			<td><b>Artist</b></td>
			<td><b>Listen</b></td>
			<td><b>Album Image</b></td>
		</tr>
		% for trackName in trackData:
			<tr><td>{{trackName['track_name']}}</td>
				<td>{{trackName['name']}}</td>
				<td><a href="http://music.yandex.ru/?ncrnd=2965#!/search?text={{trackName['track_name']}}" title="Play via music.yandex.ru"><img src="http://www.google.com/s2/favicons?domain=music.yandex.ru"></a>
				<a href="http://www.last.fm/search?q={{trackName['track_name']}}" title="Play via last.fm"><img src="http://www.google.com/s2/favicons?domain=last.fm"></a>
				<a href="http://grooveshark.com/#!/search?q={{trackName['track_name']}}" title="Play via grooveshark"><img src="http://www.google.com/s2/favicons?domain=grooveshark.com"></a></td>
				<td><img src={{trackName['cover']}} class="img-thumbnail"></td>
			</tr>
		% end
		
		</table>
		
	</div> <!-- /container -->


	<!-- Bootstrap core JavaScript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.min.js"></script>
  </body>
</html>
